package com.hansheng.ssdxs.ui.fragment;

import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.hansheng.ssdxs.R;
import com.hansheng.ssdxs.base.BaseFragment;
import com.hansheng.ssdxs.base.ViewInject;
import com.hansheng.ssdxs.base.helper.SocketHelper;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * ---------------------------------------------------------------
 * 作者：HanSheng
 * 邮箱：164897033@qq.com
 * 创建时间：2020/12/13  1:31
 * 文件描述：
 * ---------------------------------------------------------------
 */
@ViewInject(mainlayoutid = R.layout.fragment_main_home_tab)
public class FragmentMainHomeTab extends BaseFragment {

    @BindView(R.id.sendSocket)
    Button sendSocket;

    @Override
    public void afterBindView() {

    }

    @OnClick({R.id.sendSocket})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.sendSocket:
                Log.e("sendSocketMsg", "=========");
                SocketHelper.getInstance().client().send("adas");
                break;
        }
    }
}
